package com.gency.subscribe.model.system;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
/**
 * <p>
 * 
 * </p>
 *
 * @author 马行空
 * @since 2018-06-24
 */
@TableName("reg_user_reg")
public class UserReg extends Model<UserReg> {

    private static final long serialVersionUID = 1L;

    /**
     * 数据Id
     */
	private Long id;
    /**
     * 真实姓名
     */
	@TableField("real_name")
	private String real_name;
    /**
     * 微信OPenID
     */
	@TableField("open_id")
	private String open_id;
    /**
     * 微信注册地址
     */
	private String address;
    /**
     * 统一社会信用代码
     */
	@TableField("credit_code")
	private String creditCode;
    /**
     * 1:企业法人 2:股东
     */
	private Integer type;
    /**
     * 电话号码
     */
	@TableField("tel_phone")
	private String tel_phone;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date create_time;
	
	private Integer regist_status;
	
	private String extension_code;//用户推广码
	
	private Date expire_date;//会员卡结束时间
	
	private Integer flag_rebate;//0:不需要返钱 1:未返钱 2:已返钱
	
	private String companyName;//公司名称
	
	private String re_real_name;//推荐人姓名
	
	private String re_tel_phone;//推荐人电话号码


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}




	public String getOpen_id() {
		return open_id;
	}

	public void setOpen_id(String open_id) {
		this.open_id = open_id;
	}

	public String getTel_phone() {
		return tel_phone;
	}

	public void setTel_phone(String tel_phone) {
		this.tel_phone = tel_phone;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCreditCode() {
		return creditCode;
	}

	public void setCreditCode(String creditCode) {
		this.creditCode = creditCode;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public Integer getRegist_status() {
		return regist_status;
	}

	public void setRegist_status(Integer regist_status) {
		this.regist_status = regist_status;
	}

	public String getExtension_code() {
		return extension_code;
	}

	public void setExtension_code(String extension_code) {
		this.extension_code = extension_code;
	}

	public Date getExpire_date() {
		return expire_date;
	}

	public void setExpire_date(Date expire_date) {
		this.expire_date = expire_date;
	}

	public Integer getFlag_rebate() {
		return flag_rebate;
	}

	public void setFlag_rebate(Integer flag_rebate) {
		this.flag_rebate = flag_rebate;
	}

	public String getReal_name() {
		return real_name;
	}

	public void setReal_name(String real_name) {
		this.real_name = real_name;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	public String getRe_real_name() {
		return re_real_name;
	}

	public void setRe_real_name(String re_real_name) {
		this.re_real_name = re_real_name;
	}

	public String getRe_tel_phone() {
		return re_tel_phone;
	}

	public void setRe_tel_phone(String re_tel_phone) {
		this.re_tel_phone = re_tel_phone;
	}

	@Override
	public String toString() {
		return "UserReg{" +
			"id=" + id +
			", realName=" + real_name +
			", openId=" + open_id +
			", address=" + address +
			", creditCode=" + creditCode +
			", type=" + type +
			", telPhone=" + tel_phone +
			", createTime=" + create_time +
			"}";
	}
}
